class Cat:

    def __init__(self):
        self.name = 'Cat'

    def eat(self):
        print("%s 爱吃鱼" % self.name)


tom = Cat()
# tom.name = "Tom"
tom.eat()
